#!/bin/bash


# delete bridge
ifconfig br0 down
ifconfig br1 down
ifconfig br2 down
ifconfig br3 down


brctl delbr br0
brctl delbr br1
brctl delbr br2
brctl delbr br3

# delete tap
ip tuntap del tap0 mode tap
ip tuntap del tap1 mode tap
ip tuntap del tap2 mode tap
ip tuntap del tap3 mode tap

echo "delete tap successful !"

